﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThreeTeams.Domain.ThreeTeams.Domain.Entities;
using WMS.Domain;

namespace WMS.Infrastructure
{
    public class MyDBContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">数据库选项</param>
        public MyDBContext(DbContextOptions options) : base(options)
        {

        }
        /// <summary>
        /// The DbSet of HotelTest
        /// </summary>
        //public virtual DbSet<HotelTest> HotelTests { get; set; }

        /// <summary>
        /// 箱子型号实体
        /// </summary>
        public DbSet<BoxType> BoxType { get; set; }
        /// <summary>
        /// 入库附件表实体
        /// </summary>
        public DbSet<InboundAttachment> InboundAttachment { get; set; }
        /// <summary>
        /// 入库明细表实体
        /// </summary>
        public DbSet<InboundItem> InboundItem { get; set; }
        /// <summary>
        /// 入库单主表实体
        /// </summary>
        public DbSet<InboundOrder> InboundOrder { get; set; }
        /// <summary>
        /// 入库类型实体
        /// </summary>
        public DbSet<InboundType> InboundType { get; set; }
        /// <summary>
        /// 产品实体
        /// </summary>
        public DbSet<Product> Product { get; set; }
        /// <summary>
        /// 增值服务表实体
        /// </summary>
        public DbSet<ValueAddedService> ValueAddedService { get; set; }
        /// <summary>
        /// 仓库实体
        /// </summary>
        public DbSet<Warehouse> Warehouse { get; set; }
        /// <summary>
        ///  库存出入库实体类
        /// </summary>
        public DbSet<InventoryModel> InventoryModels { get; set; }
        /// <summary>
        /// 在库SKU实体
        /// </summary>
        public DbSet<SKUModel> SKUModels { get; set; }
        public DbSet<ShippedOrder> ShippedOrder { get; set; }
        public DbSet<ShippedOrderDetail> ShippedOrderDetail { get; set; }
        public DbSet<OrderFee> OrderFee { get; set; }
        public DbSet<OrderOperation> OrderOperation { get; set; }
        public DbSet<OrderAttachment> OrderAttachment { get; set; }
        public DbSet<OutboundOrder> OutboundOrder { get; set; }
        public DbSet<OutboundOrderDetail> OutboundOrderDetail { get; set; }
        public DbSet<Productmargins> Productmargins { get; set; }
        public DbSet<TariffSettings> TariffSettings { get; set; }
        public DbSet<FeeStandard> FeeStandard { get; set; }
        public DbSet<Record> Record { get; set; }

        ///用户  角色  权限
        /// <summary>
        /// 用户信息
        /// </summary>
        public DbSet<UserInfo> UserInfo { get; set; }
        public DbSet<User> User { get; set; }
        public DbSet<Role> Role { get; set; }

        public DbSet<Permission> Permission { get; set; }

        public DbSet<RoleUser> RoleUser { get; set; }

        public DbSet<RolePermission> RolePermission { get; set; }


    }
}
